package com.iking.toolkit.formatdeal.service;

import com.iking.toolkit.model.Msg;
import com.iking.toolkit.formatdeal.model.dto.FileUrlDTO;
import jakarta.servlet.http.HttpServletResponse;
import org.springframework.web.multipart.MultipartFile;

/**
 * 功能描述: Text文件格式转换
 *
 * @author: yfl
 * @date: 2025/8/4 14:38
 */
public interface TextService {
    /**
     * Text转Docx,文件url
     *
     * @param fileUrlDTO
     * @param response
     * @return
     */
    Msg textToDocx( FileUrlDTO fileUrlDTO, HttpServletResponse response);

    /**
     * Text转Docx,上传文件
     * @param multipartFile
     * @return
     */
    Msg textToDocxByFile(MultipartFile multipartFile);
}
